package ch6oopexernetteacher;

import ch6oopexerteacher.Teacher;

public class netTeacher extends Teacher {
     String lesson;

    public netTeacher() {
    }

    public netTeacher(String name, int age, int year, String gender, String lesson) {
        super(name, age, year, gender);
        this.lesson = lesson;
    }

    public void method(){
        System.out.println("有教C#的方法");
    }
    public void selfIntroduce(){
        super.selfIntroduce();
        method();
    }
    public void giveLession(){
        System.out.println("net老师用Visual studio上课");
    }
}
